package com.glacier.yuyuan.gen.webapp.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * date 2022-10-16 21:19
 * index控制层
 *
 * @author glacier
 * @version 1.0
 */
@Controller
public class IndexController extends BaseController {

    @GetMapping(value = "")
    public String index() {
        return "index";
    }

    @GetMapping(value = "login")
    public String login() {
        return "login";
    }

    @PostMapping("login")
    public String doLogin() {
        return "redirect:/";
    }

    /**
     * 开发工具
     *
     * @return
     */
    @GetMapping("/code")
    public String code() {
        return "view/code/index";
    }
}
